anyone have experience w/ cfpdfform where there ar...
# adobe
r
anyone have experience w/ cfpdfform where there are no field names, just the structured XML names like: topmostSubform[0].Page2[0].f2_25[0] ? I have tried to use the literal names in the cfpdfsubform name="topmostSubform[0]", but that gives an error. I tried it as cfpdfsubform name="topmostSubform" index=1 but the values in <cfpdfformparam ... were not getting filled in. in the case mentioned above the structure is currently cfpdfform .. cfpdfsubform name="topmostSubform" index=1 cfpdfsubform name="Page2" index=1 cfpdfformparam name="f2_25" value="test" /cfpdfsubform /cfpdfsubform /cfpdfform
e
You can dig up a copy of Adobe Lifecycle, their software for creating forms. The other software you can use that is up-to-date is Adobe Acrobat Pro. You should be able to view which parts of the form have been marked correctly as forms.
r
I dumped the XML from the document using cfpdfform already to get the structure/names - the issue is the [0] throws an error if used in the "name" value and w/o it no values go in. I was more so looking for help from someone that has successfully filled values into a form that is XFA like this.
The closest thing I have found to someone else having a similar issue was posted https://community.adobe.com/t5/coldfusion-discussions/cfpdfform-populate-not-working/m-p/14919453 . I will test other CF engines to see if the forms will fill.
b
Hi @Reuben Brown, There is a bug in CFPDFForm. The form can no longer be populated with XML data of XFA type. See bug ticket https://tracker.adobe.com/#/view/CF-4223960 The bug report has a workaround which uses cfpdfformparam in place of XML.
r
I will re-try cfpdfformparam, but last time I tried it I was getting errors like "topmostSubform[0]" is not a valid name